# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=minicom
pkgver=2.7.1
pkgrel=1
pkgdesc="menu driven communications program for terminals"
url="https://tracker.debian.org/pkg/minicom"
arch="all"
license="GPL-2.0-or-later"
makedepends="ncurses-dev gettext-dev linux-headers"
subpackages="$pkgname-doc $pkgname-lang"
source="https://alioth-archive.debian.org/releases/minicom/Source/$pkgver/minicom-$pkgver.tar.gz
	fix-includes.patch
	"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="b429b32d187c3ee915c5074a0d0f08b7e3951cb8528ecbdd889837ff301662c16740ad77bd2bf3baf759c0a84e779a8dc8fd888a4260a0ace15ebc4c2f697c82  minicom-2.7.1.tar.gz
5acff3efb0b8b02333291722044d7c473bf19eec8a26e66c0e0f41895f3e3f071dff13515ec20f7ce17368732e3674f0a42b38602e61b04e9cd70e61012641ff  fix-includes.patch"
